package com.xnyzc.lhy.common.penum.invoice;

import com.xnyzc.lhy.common.entity.PEnum;

/**
 * AA开票成功
 *
 * @Author: 刘举
 * @Date: 2019/10/25
 */
public enum EInvoiceOrderStatus implements PEnum<Integer> {
    opened(0, "待开票"),
    openSuccess(1, "已开具"),
    opening(2, "开具中"),
    invalidSuccess(3, "已作废"),
    invaliding(4, "作废中");

    int value;
    String desc;

    EInvoiceOrderStatus(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public String getDesc() {
        return desc;
    }

    @Override
    public Integer getValue() {
        return value;
    }

    @Override
    public String toString() {
        return name();
    }

    @Override
    public String toChString() {
        return desc;
    }

    public String toMessage() {
        String errorMessage = this.value + "," + this.desc;
        return errorMessage;
    }
}
